package view;

import java.awt.Dimension;
import javax.swing.JButton;

import javax.swing.WindowConstants;
import org.jdesktop.application.Application;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class PanelAltaMercaderia extends javax.swing.JPanel {

	/**
	* Auto-generated main method to display this 
	* JPanel inside a new JFrame.
	*/
	private static PanelAltaMercaderia instancia;
	private JTextField jTextFieldCantidad;
	private JTextField jTextFieldVto;
	private JLabel jLabelFechaVto;
	private JLabel jLabelCantidad;
	private JButton jButtonBuscarIngred;
	private JTextField jTextFieldIngred;
	private JLabel jLabelIngred;
	private JButton jButtonCancelar;
	private JButton jButtonGuardar;
	private JLabel jLabelAltaMercaderia;

	public static PanelAltaMercaderia getInstancia(){
		if(instancia==null){
			instancia=new PanelAltaMercaderia();
		}
		return instancia;
	}
	
	
	private PanelAltaMercaderia() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			this.setSize(400, 219);
			this.setLayout(null);
			this.add(getJLabelAltaMercaderia());
			this.add(getJButtonGuardar());
			this.add(getJButtonCancelar());
			this.add(getJLabelIngred());
			this.add(getJTextFieldIngred());
			this.add(getJButtonBuscarIngred());
			this.add(getJLabelCantidad());
			this.add(getJTextFieldCantidad());
			this.add(getJLabelFechaVto());
			this.add(getJTextFieldVto());
			Application.getInstance().getContext().getResourceMap(getClass()).injectComponents(this);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	private JLabel getJLabelAltaMercaderia() {
		if(jLabelAltaMercaderia == null) {
			jLabelAltaMercaderia = new JLabel();
			jLabelAltaMercaderia.setBounds(137, 12, 133, 14);
			jLabelAltaMercaderia.setName("jLabelAltaMercaderia");
		}
		return jLabelAltaMercaderia;
	}
	
	private JButton getJButtonGuardar() {
		if(jButtonGuardar == null) {
			jButtonGuardar = new JButton();
			jButtonGuardar.setBounds(89, 187, 90, 21);
			jButtonGuardar.setName("jButtonGuardar");
		}
		return jButtonGuardar;
	}
	
	private JButton getJButtonCancelar() {
		if(jButtonCancelar == null) {
			jButtonCancelar = new JButton();
			jButtonCancelar.setBounds(237, 187, 85, 21);
			jButtonCancelar.setName("jButtonCancelar");
		}
		return jButtonCancelar;
	}
	
	private JLabel getJLabelIngred() {
		if(jLabelIngred == null) {
			jLabelIngred = new JLabel();
			jLabelIngred.setBounds(89, 52, 90, 14);
			jLabelIngred.setName("jLabelIngred");
		}
		return jLabelIngred;
	}
	
	private JTextField getJTextFieldIngred() {
		if(jTextFieldIngred == null) {
			jTextFieldIngred = new JTextField();
			jTextFieldIngred.setBounds(201, 49, 60, 21);
		}
		return jTextFieldIngred;
	}
	
	private JButton getJButtonBuscarIngred() {
		if(jButtonBuscarIngred == null) {
			jButtonBuscarIngred = new JButton();
			jButtonBuscarIngred.setBounds(282, 49, 46, 21);
			jButtonBuscarIngred.setName("jButtonBuscarIngred");
		}
		return jButtonBuscarIngred;
	}
	
	private JLabel getJLabelCantidad() {
		if(jLabelCantidad == null) {
			jLabelCantidad = new JLabel();
			jLabelCantidad.setBounds(89, 85, 90, 14);
			jLabelCantidad.setName("jLabelCantidad");
		}
		return jLabelCantidad;
	}
	
	private JTextField getJTextFieldCantidad() {
		if(jTextFieldCantidad == null) {
			jTextFieldCantidad = new JTextField();
			jTextFieldCantidad.setBounds(201, 82, 60, 21);
		}
		return jTextFieldCantidad;
	}
	
	private JLabel getJLabelFechaVto() {
		if(jLabelFechaVto == null) {
			jLabelFechaVto = new JLabel();
			jLabelFechaVto.setBounds(89, 117, 67, 14);
			jLabelFechaVto.setName("jLabelFechaVto");
		}
		return jLabelFechaVto;
	}
	
	private JTextField getJTextFieldVto() {
		if(jTextFieldVto == null) {
			jTextFieldVto = new JTextField();
			jTextFieldVto.setBounds(201, 114, 60, 21);
		}
		return jTextFieldVto;
	}

}
